Permalink
Cannot retrieve contributors at this time
Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upSOAK/pages/devtools.js /
Go to filefunction onLoaded() { | |
var port = chrome.extension.connect({name:"DEVTOOLS-PORT"}); | |
port.onMessage.addListener(function(msg) { | |
console.log('received : ' + msg.type); | |
// find injected script tag & focus in devtools | |
chrome.devtools.inspectedWindow.eval( | |
"inspect($$('head script[data-soak=main]')[0])", | |
function(result, isException) { } | |
); | |
}); | |
// for console interface | |
chrome.experimental.devtools.console.onMessageAdded.addListener(function(msg) { | |
console.log('console catched - ' + msg); | |
}); | |
} | |
window.onload = onLoaded; |